# 4.3数到20
for i in range(1,21):
    print(i)
# 4.4一百万
list_million = list(range(1,1000001))
for i in list_million:
    print(i)
# 4.4 100万求和
print(sum(list_million))
print(min(list_million))
print(max(list_million))
# 4.6奇数
list_odd = list(range(1,21,2))
print(list_odd)
# 4.7 3的倍数
list_three = [i for i in range(3,31,3)]
print(list_three)
# 4.8 立方推导式
list_cube = [i**3 for i in range(1,11)]
print(list_cube)